home *** CD-ROM | disk | FTP | other *** search
- #! /bin/csh
- #
- # $Id: Lscoed,v 1.2 93/08/20 13:51:17 carlson Exp $
- #
- # Lscoed Provide a list of all files that are checked out of RCS.
- #
- # Revision History:
- # $Log: Lscoed,v $
- # Revision 1.2 93/08/20 13:51:17 carlson
- # Modified to provide list one file per line if stdout is a terminal,
- # otherwise it si provided as a list on one line.
- #
- # Revision 1.2 1993/05/12 17:05:30 chris
- # Added RCS symbols.
- # Modified to provide list one file per line if stdout is a terminal,
- # otherwise it is provided as a list on one line.
- #
- #------------------------------------------------------------------------
-
- set files = ""
-
- if ( -e RCS && -d RCS ) then
- foreach file ( * )
- if ( -e RCS/$file,v ) set files = ($files $file)
- end
- endif
-
- if ( -t 1 ) then
- foreach file ( $files )
- echo $file
- end
- else
- echo $files
- endif
-